package domain.businessEntity.cardinfo;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "T_Card")
public class CardInfo {
	public CardInfo(int id,String na,String se,String ph,String em,String we,String qq){
		this.setCardID(id);
		this.setName(na);
		this.setPhone(ph);
		this.setEmail(em);
		this.setWeibo(we);
		this.setQQ(qq);
	}
	// 声明用户名、密码和ID号
	@DatabaseField(generatedId = true)
	private int cardID; // 名片ID
	@DatabaseField(canBeNull = false)
	private String Name;// 姓名
	@DatabaseField(canBeNull = false)
	private String Sex;// 性别
	@DatabaseField(canBeNull = false)
	private String Phone;// 电话号码
	@DatabaseField(canBeNull = false)
	private String Email;// 电子邮件
	@DatabaseField(canBeNull = false)
	private String Weibo;// 微博
	@DatabaseField(canBeNull = false)
	private String QQ;// QQ

	// 构造函数
	public CardInfo() {
		// ORMLite needs a no-arg constructor
	}

	public int getCardID() {
		return cardID;
	}

	public void setCardID(int cardID) {
		this.cardID = cardID;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public String getSex() {
		return Sex;
	}

	public void setSex(String sex) {
		Sex = sex;
	}

	public String getPhone() {
		return Phone;
	}

	public void setPhone(String phone) {
		Phone = phone;
	}

	public String getEmail() {
		return Email;
	}

	public void setEmail(String email) {
		Email = email;
	}

	public String getWeibo() {
		return Weibo;
	}

	public void setWeibo(String weibo) {
		Weibo = weibo;
	}

	public String getQQ() {
		return QQ;
	}

	public void setQQ(String qQ) {
		QQ = qQ;
	}
}
